/* 预警管理页面样式 */

/* 主布局样式 */
.admin-main {
    display: flex;
    min-height: calc(100vh - 64px);
}

/* 内容区样式 */
.alert-container {
    flex: 1;
    padding: 24px;
    background: #f5f7fa;
    overflow-y: auto;
}

/* 容器样式 */
.alert-container {
    padding: 20px;
}

/* 预警概览卡片样式 */
.alert-overview {
    margin-bottom: 24px;
}

.alert-stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.alert-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.warning {
    background: linear-gradient(135deg, #f6b73c 0%, #eb8d00 100%);
}

.stat-icon.processing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.stat-icon.info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 4px 0;
}

.stat-info p {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

/* 工具栏样式 */
.alert-toolbar {
    background: white;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.toolbar-left {
    display: flex;
    gap: 12px;
}

.toolbar-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-input {
    width: 240px;
}

/* 预警列表样式 */
.alert-list {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.el-table {
    margin-bottom: 20px;
}

/* 分页容器样式 */
.pagination-container {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
}

/* 对话框样式 */
.el-dialog {
    border-radius: 12px;
}

.el-dialog__header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.el-dialog__body {
    padding: 24px;
}

.el-dialog__footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
}

/* 表单样式优化 */
.el-form-item__label {
    font-weight: 500;
}

.el-input__inner,
.el-textarea__inner {
    border-radius: 8px;
}

/* 标签样式 */
.el-tag {
    border-radius: 6px;
    padding: 4px 8px;
}

/* 按钮样式 */
.el-button {
    border-radius: 8px;
    font-weight: 500;
}

.el-button--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.el-button--primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6d4c98 100%);
}

.el-button--danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    border: none;
}

.el-button--danger:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .toolbar-right {
        flex-wrap: wrap;
        gap: 12px;
    }

    .search-input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .alert-container {
        padding: 12px;
    }

    .alert-toolbar {
        flex-direction: column;
        gap: 16px;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
    }

    .toolbar-right {
        flex-direction: column;
    }

    .search-input,
    .el-select,
    .el-date-picker {
        width: 100% !important;
    }

    .el-button {
        width: 100%;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .alert-stat-card,
    .alert-toolbar,
    .alert-list {
        background: #1f2937;
    }

    .stat-info h3 {
        color: #f9fafb;
    }

    .stat-info p {
        color: #9ca3af;
    }

    .el-table {
        background-color: #1f2937;
        color: #f9fafb;
    }

    .el-table th,
    .el-table tr {
        background-color: #1f2937;
    }

    .el-table--striped .el-table__body tr.el-table__row--striped td {
        background-color: #374151;
    }

    .el-dialog,
    .el-dialog__header,
    .el-dialog__footer {
        background-color: #1f2937;
        border-color: #374151;
    }

    .el-input__inner,
    .el-textarea__inner {
        background-color: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
}

/* 侧边栏样式 */
.admin-sidebar {
    width: 240px;
    background: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: width 0.3s ease;
    z-index: 50;
}

.admin-sidebar.collapsed {
    width: 64px;
}

.sidebar-toggle {
    position: absolute;
    top: 16px;
    right: -12px;
    width: 24px;
    height: 24px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.sidebar-menu {
    height: 100%;
    border: none;
    padding-top: 20px;
}

.sidebar-menu .el-menu-item,
.sidebar-menu .el-submenu__title {
    height: 48px;
    line-height: 48px;
    border-radius: 0 24px 24px 0;
    margin: 2px 12px 2px 0;
    color: #6b7280;
    transition: all 0.3s ease;
}

.sidebar-menu .el-menu-item:hover,
.sidebar-menu .el-submenu__title:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
}

.sidebar-menu .el-menu-item.is-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.sidebar-menu .el-submenu .el-menu-item {
    margin: 1px 12px 1px 0;
    border-radius: 0 20px 20px 0;
    background: transparent;
}

.sidebar-menu .el-submenu .el-menu-item:hover {
    background: rgba(102, 126, 234, 0.08) !important;
}

.header-logo {
	height: 48px;
	width: auto;
}
